<script type="text/javascript">

  alert("This is alert message");
  // with OK button

  document.write("This message print on web page without alert");

   confirm("Are you sure you want to delete ?");
  //confirm with OK and CANCEL buttons.

    console.log("Used to log message in firebug, press F12 to see that message");
</script>
